﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using _24_Hour_Blogger.Library;
using _24_Hour_Blogger.Models;
using _24_Hour_Blogger.Models.Content;
using _24_Hour_Blogger.ViewModels.Content;

namespace _24_Hour_Blogger.Api.Controllers.Content
{
    public class BlogController : ApiControllerBase<BlogViewModel, Blog>
    {
        public BlogController()
        {
            this.DataCollection = new DataCollectionBase<BlogViewModel, Blog>(DataStore.ContentEntities, DataStore.ContentEntities.Blogs, DataStore.ContentEntities.Blogs);
        }

        public override HttpResponseMessage Post(int id, BlogViewModel item)
        {
            return this.Put(id, item, item.UserId, false, false);
        }

    }
}


